package com.hxk.job;

import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import com.hxk.service.UserService;
/**
 * 自定义quartzJob对象
 * @author Cactus
 */
public class QuartzJob implements Job {
	
	@Autowired
	private UserService userService;

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		System.out.println("我被调用了"+new Date());
		this.userService.addUser();
	}

}
